package com.deep.dubbo.consumer;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.context.annotation.ImportResource;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.deep.dubbo.common.service.UserService;

@ImportResource("classpath:META-INF/**/applicationContext-*.xml")
@EnableAutoConfiguration
@RestController
public class Application {
	
	@Autowired
	private UserService userService;
	
	@RequestMapping("/")
    public void home() {
        userService.sayHello("kobe");;
    }
	
    public static void main(String[] args) throws Exception {
        SpringApplication.run(Application.class, args);
    }
}